package com.ryan.programming007.model;

import java.util.LinkedHashMap;
import java.util.Map;

public class TutorialSeries {

    private String name;
    private Map<String, Tutorial> tutorials = new LinkedHashMap<String, Tutorial>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, Tutorial> getTutorials() {
        return tutorials;
    }

    public void setTutorials(Map<String, Tutorial> tutorials) {
        this.tutorials = tutorials;
    }

    public int getNumTutorials() {
        return tutorials.size();
    }

    @Override
    public String toString() {
        return "TutorialSeries [" + "name " + name + " " + "tutorials " + tutorials + "]";
    }
}
